package middleware

import (
	"github.com/gin-gonic/gin"
	"test/ollama/controller"
)

// 路由配置信息
func Router(r *gin.Engine) gin.HandlerFunc {
	chat := controller.Chat{}
	group := r.Group("/chat")
	return func(c *gin.Context) {
		group.POST("/ai", chat.DoChat)

	}
}
